import com.demo.service.AccountService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestApp {
    
    @Test
    public void demo1(){
        String xmlPath="applicationContext.xml";
        ApplicationContext applicationContext=new ClassPathXmlApplicationContext(xmlPath);
        AccountService accountService= (AccountService) applicationContext.getBean("accountService");
        accountService.transfer("aaa","bbb",500);
    }
}
